package imy.virtual.touch.bean;

import android.os.Build;
import android.os.SystemClock;

public final class GesturePoint {
    public float x;

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public long point_down_time;

    public int id;
    public float y;
    public int action;


    public static class Builder {
        private float x;
        private float y;
        private int action;
        private int id;
        private long point_down_time;

        public static Builder builder(float x, float y, int action) {
            return builder(x, y, action, 0, SystemClock.uptimeMillis());
        }

        public static Builder builder(float x, float y, int action, int id, long point_down_time) {
            Builder builder = new Builder();
            builder.x = x;
            builder.y = y;
            builder.action = action;
            builder.id = id;
            builder.point_down_time = point_down_time;
            return builder;
        }

        public GesturePoint build() {
            GesturePoint point = new GesturePoint();
            point.x = x;
            point.y = y;
            point.action = action;
            point.id = id;
            point.point_down_time = point_down_time;
            return point;
        }
    }
}
